using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Data;
using CaseData;


namespace TaskManager
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(string[] args) {
            if (args.Length>0)
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.EnableVisualStyles();
            CaseManager.CaseManager cm;
            if( args.Length > 0 ) {
                cm = new CaseManager.CaseManager(args[0]);
            }
            else {
                cm = new CaseManager.CaseManager();
            }
            //cm.gvAllCases.Columns["CaseId"].HeaderText = "Changed header caption";
            Application.Run(cm);
        }
    }
}